package entity

import (
	"shqsoft.cn/pasnj/base"
	//	log "github.com/sirupsen/logrus"
)

//V_DIM_USER 用户
type V_DIM_USER struct {
	ID        int    `gorm:"AUTO_INCREMENT;primary_key;column:EMID"`
	EMNO      string `gorm:"column:EMNO"`
	EMNM      string `gorm:"column:EMNM"`
	DPID      int    `gorm:"column:DPID"`
	DPNM      string `gorm:"column:DPNM"`
	PDID      int    `gorm:"column:DPID"`
	PDNM      string `gorm:"column:PDNM"`
	PWD       string `gorm:"column:PWD"`
	OrderKey  string `gorm:"column:OrderKey"`
	STATUS    string `gorm:"column:STATUS"`
	OrderKey2 string `gorm:"column:OrderKey2"`
	SortNo    string `gorm:"column:SortNo"`
	ISLSGHR   int    `gorm:"column:ISLSGHR"`
}

//TableName YONGHU
func (V_DIM_USER) TableName() string {
	return "V_DIM_USER"
}

//V_DIM_USEREF 返回结构体
func V_DIM_USEREF() base.EntityFunc {
	return func() interface{} {
		entity := V_DIM_USER{}
		return &entity
	}
}

//V_DIM_USERESF 返回结构体数组
func V_DIM_USERESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []V_DIM_USER
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("V_DIM_USER", base.NewDefaultDao(V_DIM_USEREF(), V_DIM_USERESF(), nil))
}
